#ifndef MYALERT_H
#define MYALERT_H

#include <QDialog>

QT_BEGIN_NAMESPACE
namespace Ui { class MyAlert; }
QT_END_NAMESPACE

class MyAlert : public QDialog
{
    Q_OBJECT
public:
    MyAlert(QWidget *parent = nullptr);
    ~MyAlert();

    void setTitle(QString title);
    void setMsg(QString content);
    void setButtonContent(QString bc);
    virtual int exec();
private slots:
    void on_closeButton_clicked();

private:
    Ui::MyAlert *ui;
    QString title = "Error";
    QString msg = "Error";
    QString buttonContent = "OK";
};

#endif // MYALERT_H
